import request from '@/utils/request'

/*
*增加保单
* */
export function addInsurance(query) {
  return request({
    url: '/insurance/insuranceOrder/add',
    method: 'post',
    data: query
  })
}

/*
*删除保单信息
* */
export function delInsurance(query) {
  return request({
    url: '/insurance/insuranceOrder/delete',
    method: 'delete',
    params: query
  })
}

/*
*获取保单信息详情
* */
export function getInsuranceInfo(query) {
  return request({
    url: '/insurance/insuranceOrder/queryInsuranceArchiveList',
    method: 'get',
    params: query
  })
}

/*
*查询保单列表
* */
export function getInsuranceList(query) {
  return request({
    url: '/insurance/insuranceOrder/list',
    method: 'get',
    params: query
  })
}

/*
*修改保单
* */
export function updateInsurance(query) {
  return request({
    url: '/insurance/insuranceOrder/update',
    method: 'put',
    data: query
  })
}
